package com.lagou.goodshop.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lagou.goodshop.mapper.GoodsMapper;
import com.lagou.goodshop.pojo.Goods;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Authther: mrwu
 * @date:2021/5/15-05
 * @Description:com.lagou.goodshop.service
 */

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService{

    @Override
    public List<Goods> mySelect() {
        return baseMapper.myselect();
    }

    @Override
    public int decreUpdate(String id) {
        return baseMapper.decreGoodsCount(id);
    }
}
